#include "poller.h"
#include "epoll_poller.h"

#include <cstdlib>

class Poller;
class EventLoop;

Poller *Poller::new_default_poller(EventLoop *loop) {
    if (::getenv("MYMUDUO_USE_POLL")) {
        return nullptr;
    } else {
        return new EPollPoller(loop);
    }
}
